<?php
/*** IMPORTANT: TO BE USED IN 'THE LOOP' ***/
$tumbnail= cl_get_the_post_thumbnail();
$post_thumbnail_url = wp_get_attachment_url( get_post_thumbnail_id() );
?>

<article class="post" id="<?php echo get_the_ID();?>">	

	<div class="content">		
			
		<div>
			<?php if(!empty($tumbnail)){?>
			<div class="alignleft topleftwide hide_for_mobile">
				<a href="<?php echo $post_thumbnail_url ?>" slide="yes"><?php echo $tumbnail;?></a>
			</div>
			<?php }?>		
			
			<h1 class="title alignleft topleft m_block">
				<a class="box m_block m_textcenter" href="<?php echo the_permalink(); ?>"><?php the_title(); ?></a>
			</h1>
			
			<div class="alignright topright hide_for_mobile">
				<label class="box small white soft"><?php echo cl_get_the_published_date(); ?></label>
			</div>				
			
			<div class="clear"></div>
		</div>		
					
		<?php the_content($more_text);?>
		
		<div class="hide_for_tablet m_block">
			<label class="box title small m_block"><?php echo cl_get_the_published_date(); ?></label>
		</div>	
		
	</div>
	
	<footer class="hide_for_mobile">		
		<ul>
			<li><?php cl_breadcrumbs(); ?></li>
			<li><?php echo cl_get_the_modified_date(true);?></li>
		</ul>		
		<?php cl_template('social'); ?>
	</footer>
	
	<div class="clear"></div>
	
</article>
